import { SET_USER_INFO_TYPE } from './actions'
export const UserInfo = (pre = {}, action) => {
    const { data, type } = action
    switch (type) {
        case SET_USER_INFO_TYPE:
            return { ...pre, ...data }
        default:
            return pre
    }

}